/****************************************************************************
*			
*
* File      : bsp_driver_uart.h
* Version   : V1.0
* By        : luofei
* Time		: 2012-02-14 
* For       : ARMv7M Cortex-M3
* Mode      : Thumb2
* Toolchain : IAR EWARM
*******************************************************************************/
#ifndef BSP_DRIVER_UART_H
#define BSP_DRIVER_UART_H


#include "../stm32f103bsp_def.h"

/****************************************************                        
*				stm32f103x_bsp_init_uart1
* Description:	
* Arguments  :  
* Returns    :  
*****************************************************/
void stm32f103x_bsp_init_Uart1( uint32_t u_BaudRate,
							    uint16_t u_DataBit,
								uint16_t u_StopBit,
								uint16_t u_parity );


/****************************************************                        
*				stm32f103x_bsp_send_Uart1
* Description:	
* Arguments  :  
* Returns    :  
*****************************************************/
uint16_t stm32f103x_bsp_send_Uart1( unsigned char *p_Data, 
								    uint16_t u_Size );



/****************************************************                        
*				stm32f103x_bsp_init_uart1
* Description:	
* Arguments  :  
* Returns    :  
*****************************************************/
void stm32f103x_bsp_init_Uart3( uint32_t u_BaudRate,
							    uint16_t u_DataBit,
								uint16_t u_StopBit,
								uint16_t u_parity );


/****************************************************                        
*				stm32f103x_bsp_send_Uart3
* Description:	
* Arguments  :  
* Returns    :  
*****************************************************/
uint16_t stm32f103x_bsp_send_Uart3( unsigned char *p_Data, 
								    uint16_t u_Size );

#endif
